package cn.iocoder.yudao.module.shop.footprint.controller.admin;

import cn.iocoder.yudao.framework.business.basic.controller.PageController;
import cn.iocoder.yudao.framework.common.pojo.CommonResult;
import cn.iocoder.yudao.framework.common.pojo.PageResult;
import cn.iocoder.yudao.module.shop.footprint.service.AdminShopFootprintService;
import cn.iocoder.yudao.module.shop.footprint.vo.AdminShopFootprintQueryDTO;
import cn.iocoder.yudao.module.shop.footprint.vo.AdminShopFootprintVO;
import io.swagger.v3.oas.annotations.tags.Tag;
import jakarta.annotation.Resource;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import static cn.iocoder.yudao.framework.common.pojo.CommonResult.success;

/**
 * <pre>
 * OOoO0OOoO0OOOooo0oOOOO0OOOOO0oooOO0ooOOO0Ooooo0OOOOo0ooooO0OOooo0Ooooo0OOOOO
 *  这里是文件说明
 * OOoO0OOoO0OOOooo0oOOOO0OOOOO0oooOO0ooOOO0Ooooo0OOOOo0ooooO0OOooo0Ooooo0OOOOO
 * </pre>
 *
 * @author 山野羡民（1032694760@qq.com）
 * @since 2025/01/10
 */
@Tag(name = "管理后台 - 店铺浏览记录")
@RestController
@RequestMapping("/shop/footprint")
@Validated
public class ShopFootprintController implements PageController<AdminShopFootprintVO, AdminShopFootprintQueryDTO> {
    @Resource
    private AdminShopFootprintService adminShopFootprintService;

    @PreAuthorize("@ss.hasPermission('shop:footprint:query')")
    @Override
    public CommonResult<PageResult<AdminShopFootprintVO>> getPage(Integer pageNo, Integer pageSize, AdminShopFootprintQueryDTO param) {
        return success(adminShopFootprintService.getPage(pageNo, pageSize, param));
    }

}
